
<!-- content start -->
<div class="admin-content">

	<div class="am-cf am-padding">
		<div class="am-fl am-cf">
			<strong class="am-text-primary am-text-lg">产品种类</strong> / <small>Category</small>
		</div>
	</div>

	<div class="alert alert-info">	
		
		<ul class="am-avg-sm-1 am-avg-md-4 am-avg-lg-4 am-margin gallery-list">
			<li ng-repeat="productCategory in productCategorys">
			   <form name="formExist">
				<div class="am-img-loader am-img-bdrs" style="border: none;">
					<img class="am-img-thumbnail am-img-bdrs am-u-sm-centered" ng-click="pass(productCategory.imageId)" data-am-modal="{target: '#my-actions'}"
						ng-src="{{ baseUrl+productCategory.imageId+formatImage }}" />
					<div>
						<input   ng-disabled="productCategory.status" type="file" ng-file-select="onFileSelectadd($files,productCategory)"/>	
					</div>		
					<div class="gallery-list" style="padding-top: 3%;">
						<label style="display: none;" ng-model='productCategory.id'></label>
						<!-- 通过指令操控指定的对象  因为-->
						<input ng-readonly="productCategory.status" ng-init="productCategory.status=true" class="am-form-field" type="text" ng-model="productCategory.description"  required="required" />
					</div>
					<div style="padding-top: 3%;">
					<!-- modifyById(productCategory.id,description,productCategory.imageId)  -->
						<i ng-init="productCategory.icon='edit'" class="am-icon-{{productCategory.icon}}  am-btn am-btn-default am-btn-xl am-round" ng-click="modifyById(productCategory,formExist.$pristine)"></i> 
						<i ng-show=fasle  class="am-icon-close am-btn am-btn-default am-btn-xl am-round"  ng-click="deleteProductCategory(productCategory)"></i>
					</div>
				</div>
			   </form>
			</li>

			<li>
			   <form name="formName">
					<div ng-model="formdata" >
						<div>
							<i focusinput class="am-icon-plus am-btn am-btn-default am-btn-xl am-round" ng-bind="filename"></i>
							<input type="file" ng-file-select="onFileSelect($files)" ng-show="false"/>
						</div>
						<div style="padding-top: 3%;">
							<input required class="am-form-field"   type="text" ng-model="formdata.description" />
						</div>
						<div style="padding-top: 3%;">
							<i ng-disabled="formName.$invalid" class="am-icon-check am-btn am-btn-default am-btn-xl" ng-click="addProductCategory()"></i>
						</div>
					</div>
				</form>
			</li>
		</ul>
		
	</div>
</div>
<!-- content end -->